home *** CD-ROM | disk | FTP | other *** search
File List | 1986-10-19 | 1.1 KB | 79 lines |
- Alert 1,"Kilobaud Benchmarks",1,"Return",A
- Dim M(5)
- Print "Benchmark 1 :"'
- Print " FOR NEXT LOOP 1 TO 1000 "
- T=Timer
- For I=1 To 1000
- Next I
- Print (Timer-T)/200
- Print "Benchmark 2 :"'
- Print " K=K+1 REPEAT TO 1000"
- T=Timer
- K=0
- Repeat
- K=K+1
- Until K>999
- Print (Timer-T)/200
- Print "Benchmark 3 :"'
- Print " K=K+1 AND A=K/K*K+K-K REPEAT TO 1000)"
- T=Timer
- K=0
- Repeat
- K=K+1
- A=K/K*K+K-K
- Until K>=1000
- Print (Timer-T)/200
- Print "Benchmark 4 :"'
- Print "K=K+1 And A=K/2*3+4-5"
- T=Timer
- K=0
- Repeat
- K=K+1
- A=K/2*3+4-5
- Until K>=1000
- Print (Timer-T)/200
- Print "Benchmark 5 :"'
- T=Timer
- K=0
- Repeat
- K=K+1
- A=K/2*3+4-5
- Gosub Dummy
- Until K>=1000
- Print (Timer-T)/200
- Print "Benchmark 6 :"'
- T=Timer
- K=0
- Repeat
- K=K+1
- A=K/2*3+4-5
- Gosub Dummy
- For L=1 To 5
- Next L
- Until K>=1000
- Print (Timer-T)/200
- Print "Benchmark 7 :"'
- T=Timer
- K=0
- Repeat
- K=K+1
- A=K/2*3+4-5
- Gosub Dummy
- For L=1 To 5
- M(L)=A
- Next L
- Until K>=1000
- Print (Timer-T)/200
- Print "Benchmark 8 :"'
- T=Timer
- K=0
- Repeat
- K=K+1
- A=K^2
- B=Log(K)
- C=Sin(K)
- Until K>=1000
- Print (Timer-T)/200
- Procedure Dummy
- Return
-